package com.commerceE.common.search;

import java.util.ArrayList;
import java.util.List;

public class ProductSearch {

	public String orderByClause;

	public boolean distinct;

	public List<ProductCriterion> criterionList;
	
	public boolean isPageable = false;
	
	public int paginationStartFrom;
	
	public int itemSizePerPage;

	public ProductSearch() {
		criterionList = new ArrayList<ProductCriterion>();
	}
	
	public void addProductCriterion(ProductCriterion productCriterion){
		criterionList.add(productCriterion);
	}

	public String getOrderByClause() {
		return orderByClause;
	}

	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	public boolean isDistinct() {
		return distinct;
	}

	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	public List<ProductCriterion> getCriterionList() {
		return criterionList;
	}

	public void setCriterionList(List<ProductCriterion> criterionList) {
		this.criterionList = criterionList;
	}

	public int getPaginationStartFrom() {
		return paginationStartFrom;
	}

	public void setPaginationStartFrom(int paginationStartFrom) {
		this.paginationStartFrom = paginationStartFrom;
	}

	public int getItemSizePerPage() {
		return itemSizePerPage;
	}

	public void setItemSizePerPage(int itemSizePerPage) {
		this.itemSizePerPage = itemSizePerPage;
	}

	public boolean isPageable() {
		return isPageable;
	}

	public void setPageable(boolean isPageable) {
		this.isPageable = isPageable;
	}
 
	 

}
